package Chinese.Education.Identify.mapper;

import Chinese.Education.Identify.pojo.Major;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MajorMapper {
    List<Major> selectMajor(
                            @Param("offset") int offset,
                            @Param("limit") int limit,
                            @Param("majorName") String majorName);

    int selectCount();

    void insertMajor(Major major);

    void deleteMajor(@Param("majorName") String majorName);

    void updateMajor(Major major);


}
